<?php
defined('IN_SITE') or exit('Access Denied');
if($dosubmit)
{
	$head['title'] = '网站地图 - '.$SETTING['sitename'];
	$head['keywords'] = $SETTING['sitename'];
	ob_start();
	include template('sitemap.html');
	$file = WWW_ROOT.'sitemap.html';
	createhtml($file);
	showmessage('更新完成',$forward);
}
else
{
	include 'sitemap.tpl.php';
}
?>